﻿using B.S.DataBasic.Domain;
using B.S.DataBasic.Domain.Addr;
using B.S.DataBasic.Domain.Cultivation;
using B.S.DataBasic.Domain.GoodInfra;
using B.S.DataBasic.Domain.Ingredient;
using B.S.DataBasic.Domain.RBAC;
using B.S.DataBasic.Domain.Slaughter;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.DataBasic.Infrastructure
{
    public class DataDbContext:DbContext
    {
        public DataDbContext(DbContextOptions<DataDbContext> optiosn):base(optiosn) { }

        //public DbSet<City> Citys { get; set; }
        //public DbSet<County> Countys { get; set; }
        //public DbSet<Province> Provinces { get; set; }
        //public DbSet<Processing> Processings { get; set; }
        //public DbSet<Accessories> Accessories { get; set; }
        /// <summary>
        /// 城市表
        /// </summary>
        public DbSet<Address> Addresses { get; set; }
        /// <summary>
        /// 养殖企业信息表
        /// </summary>
        public DbSet<BreedingEnterprises> BreedingEnterprises { get; set; }
        /// <summary>
        /// 养殖信息表
        /// </summary>
        public DbSet<Breedings> Breedings { get; set; }
        /// <summary>
        /// 商品表
        /// </summary>
        public DbSet<Good> Goods { get; set; }
        /// <summary>
        /// 溯源表
        /// </summary>
        public DbSet<Traceabilitable> Traceabilitables { get; set; }
        /// <summary>
        /// 辅料表
        /// </summary>
        public DbSet<Accessories> Accessories { get; set; }
        /// <summary>
        /// 添加剂表
        /// </summary>
        public DbSet<Additive> Additives { get; set; }
        /// <summary>
        /// 原料表
        /// </summary>
        public DbSet<Material> Materials { get; set; }
        /// <summary>
        /// 包材表
        /// </summary>
        public DbSet<PackeMaterial> PackeMaterials { get; set; }
        /// <summary>
        /// 屠宰企业信息表
        /// </summary>
        public DbSet<SlaughterEnterprise> SlaughterEnterprises { get; set; }
        /// <summary>
        /// 屠宰表
        /// </summary>
        public DbSet<Slaughters> Slaughters { get; set; }
        /// <summary>
        /// 保健表
        /// </summary>
        public DbSet<Imunitys> Imunitys { get; set; }
        /// <summary>
        /// 图片表
        /// </summary>
        public DbSet<LogUrl> LogUrls { get; set; }
        public DbSet<User> Users { get; set; }
        //public DbSet<Role> Roles { get; set; }




    }
}
